import request from "@/utils/request";
const baseURL = process.env.VUE_APP_BASIC_API;
// 发送短信验证码
export function smsSendCode(params) {
  return request({
    baseURL,
    url: "/sms/sendCode",
    method: "post",
    data: params
  });
}

export function listByKind(dictKind) {
  return request({
    baseURL,
    url: "/dict/listByKind",
    method: "get",
    params: {
      dictKind
    }
  });
}
//
export function findByParentpCateId(params) {
  return request({
    baseURL,
    url: "/category/findByPCateId",
    method: "post",
    params
  });
}
export function findBookChapter(params) {
  return request({
    baseURL,
    url: "/bookChapter/findList",
    method: "post",
    data: params
  });
}

export function findColumnList(params) {
  return request({
    baseURL,
    url: "/tags/findColumnList",
    method: "post",
    data: params
  });
}
export function findTagsList(params) {
  return request({
    baseURL,
    url: "/tags/findList",
    method: "post",
    data: params
  });
}

// 查找栏目分类
export function findColumnTags(params) {
  return request({
    baseURL,
    url: `/tags/findColumnTags`,
    method: "post",
    data: params
  });
}

// 查找栏目分类
export function findByFuzzyTagsName(data) {
  return request({
    baseURL,
    url: `/tags/findByFuzzyTagsName`,
    method: "post",
    data
  });
}

// 点赞
export function thumb(params) {
  return request({
    baseURL,
    url: "/comment/thumb",
    method: "post",
    data: params
  });
}

// 评论
export function comment(params) {
  return request({
    baseURL,
    url: "/comment/comment",
    method: "post",
    data: params
  });
}

// 评论分页
export function commentPage(params) {
  return request({
    baseURL,
    url: "/comment/page",
    method: "post",
    data: params
  });
}
// 评论回复分页
export function replyPage(params) {
  return request({
    baseURL,
    url: "/comment/replyPage",
    method: "post",
    data: params
  });
}
